package com.weaver.drools.common.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.Set;


/**
 * The persistent class for the Q_CMN_OPERATEPOINT_20 database table.
 * 
 */
@Entity
@Table(name="Q_CMN_OPERATEPOINT_20")
public class QCmnOperatepoint20 implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="Q_CMN_OPERATEPOINT_20_OPERATEPOINTID_GENERATOR",sequenceName="SE_Q_CMN_OPERATEPOINT_20",allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="Q_CMN_OPERATEPOINT_20_OPERATEPOINTID_GENERATOR")
	private Long operatepointid;

	private String billtop;

	private Long blockid;

	private Long blocktype;

	@Temporal(TemporalType.DATE)
	private Date builtuptime;

	private Long businessstatusid;

	private String capitalauthority;

	private Long cityid;

	private String citylocationcoordinatesx;

	private String citylocationcoordinatesy;

	@Temporal(TemporalType.DATE)
	private Date coordinategatherdate;

	private Long coordinategathersituation;

	private Long coordinategathertype;

	@Temporal(TemporalType.DATE)
	private Date createdate;

	private Long datastatusid;

	private Long datatypeid;

	private Long districtid;

	@Column(name="HMFF_INDUSTRYTYPEID")
	private Long hmffIndustrytypeid;

	private String inareacounty;

	private String industrialpark;

	private Long industrytypeid;

	private Long isdeleted;

	private Long isinfocompletion;

	@Temporal(TemporalType.DATE)
	private Date lasteroperatetime;

	@Temporal(TemporalType.DATE)
	private Date latestgaingistime;

	@Temporal(TemporalType.DATE)
	private Date latestoperatetime;

	private String latitude;

	private String Longitude;

	private Long moneyclassid;

	private Long nationindustrytypeid;

	private String operatepointaddress;

	private String operatepointaddresspostcode;

	private String operatepointemail;

	private String operatepointfax;

	private String operatepointname;

	private String operatepointphone;

	private String operatepointpicurl;

	private String operatepointshortname;

	private String operatepointwebsite;

	private String opptresponsibleperson;

	private String opptresponsiblepersonaddr;

	private String opptresponsiblepersonid;

	private String opptresponsiblepersonmb;

	private String opptresponsiblepersonphone;

	private Long opptrpersondutiestypeid;

	private String organizationshortname;

	private String postcode;

	private Long provinceid;

	private String registeraddress;

	private Long registertypeid;

	private String remark;

	@Column(name="RESERVED_1")
	private String reserved1;

	@Column(name="RESERVED_2")
	private String reserved2;

	@Column(name="RESERVED_3")
	private String reserved3;

	@Column(name="RESERVED_4")
	private String reserved4;

	@Column(name="RESERVED_5")
	private String reserved5;

	@Column(name="RESERVED_6")
	private String reserved6;

	@Column(name="RESERVED_7")
	private String reserved7;

	@Column(name="RESERVED_8")
	private String reserved8;

	private Long ringid;

	private Long roadid;

	private String safeproductresp;

	private String safeproductrespduty;

	private String safeproductrespphone;

	private Long scale;

	@Temporal(TemporalType.DATE)
	private Date shutdowndate;

	private Long sortnumber;

	private Long stateid;

	private Long superiorunitid;

	private String superiorunitname;

	private Long superviseviewtypeid;

	private String unitname;

	private Long unittypeid;

	private Long userid;

	private Long villageid;

	//bi-directional many-to-one association to QCmnOperatepoint20
	@ManyToOne
	@JoinColumn(name="P_OPERATEPOINTID")
	private QCmnOperatepoint20 QCmnOperatepoint20;

	//bi-directional many-to-one association to QCmnOperatepoint20
	@OneToMany(mappedBy="QCmnOperatepoint20")
	private Set<QCmnOperatepoint20> QCmnOperatepoint20s;

	@ManyToOne
	@JoinColumn(name="UNITID")
	private QCmnUnit18 QCmnUnit18;
	
	public QCmnOperatepoint20() {
	}

	public Long getOperatepointid() {
		return this.operatepointid;
	}

	public void setOperatepointid(Long operatepointid) {
		this.operatepointid = operatepointid;
	}

	public String getBilltop() {
		return this.billtop;
	}

	public void setBilltop(String billtop) {
		this.billtop = billtop;
	}

	public Long getBlockid() {
		return this.blockid;
	}

	public void setBlockid(Long blockid) {
		this.blockid = blockid;
	}

	public Long getBlocktype() {
		return this.blocktype;
	}

	public void setBlocktype(Long blocktype) {
		this.blocktype = blocktype;
	}

	public Date getBuiltuptime() {
		return this.builtuptime;
	}

	public void setBuiltuptime(Date builtuptime) {
		this.builtuptime = builtuptime;
	}

	public Long getBusinessstatusid() {
		return this.businessstatusid;
	}

	public void setBusinessstatusid(Long businessstatusid) {
		this.businessstatusid = businessstatusid;
	}

	public String getCapitalauthority() {
		return this.capitalauthority;
	}

	public void setCapitalauthority(String capitalauthority) {
		this.capitalauthority = capitalauthority;
	}

	public Long getCityid() {
		return this.cityid;
	}

	public void setCityid(Long cityid) {
		this.cityid = cityid;
	}

	public String getCitylocationcoordinatesx() {
		return this.citylocationcoordinatesx;
	}

	public void setCitylocationcoordinatesx(String citylocationcoordinatesx) {
		this.citylocationcoordinatesx = citylocationcoordinatesx;
	}

	public String getCitylocationcoordinatesy() {
		return this.citylocationcoordinatesy;
	}

	public void setCitylocationcoordinatesy(String citylocationcoordinatesy) {
		this.citylocationcoordinatesy = citylocationcoordinatesy;
	}

	public Date getCoordinategatherdate() {
		return this.coordinategatherdate;
	}

	public void setCoordinategatherdate(Date coordinategatherdate) {
		this.coordinategatherdate = coordinategatherdate;
	}

	public Long getCoordinategathersituation() {
		return this.coordinategathersituation;
	}

	public void setCoordinategathersituation(Long coordinategathersituation) {
		this.coordinategathersituation = coordinategathersituation;
	}

	public Long getCoordinategathertype() {
		return this.coordinategathertype;
	}

	public void setCoordinategathertype(Long coordinategathertype) {
		this.coordinategathertype = coordinategathertype;
	}

	public Date getCreatedate() {
		return this.createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Long getDatastatusid() {
		return this.datastatusid;
	}

	public void setDatastatusid(Long datastatusid) {
		this.datastatusid = datastatusid;
	}

	public Long getDatatypeid() {
		return this.datatypeid;
	}

	public void setDatatypeid(Long datatypeid) {
		this.datatypeid = datatypeid;
	}

	public Long getDistrictid() {
		return this.districtid;
	}

	public void setDistrictid(Long districtid) {
		this.districtid = districtid;
	}

	public Long getHmffIndustrytypeid() {
		return this.hmffIndustrytypeid;
	}

	public void setHmffIndustrytypeid(Long hmffIndustrytypeid) {
		this.hmffIndustrytypeid = hmffIndustrytypeid;
	}

	public String getInareacounty() {
		return this.inareacounty;
	}

	public void setInareacounty(String inareacounty) {
		this.inareacounty = inareacounty;
	}

	public String getIndustrialpark() {
		return this.industrialpark;
	}

	public void setIndustrialpark(String industrialpark) {
		this.industrialpark = industrialpark;
	}

	public Long getIndustrytypeid() {
		return this.industrytypeid;
	}

	public void setIndustrytypeid(Long industrytypeid) {
		this.industrytypeid = industrytypeid;
	}

	public Long getIsdeleted() {
		return this.isdeleted;
	}

	public void setIsdeleted(Long isdeleted) {
		this.isdeleted = isdeleted;
	}

	public Long getIsinfocompletion() {
		return this.isinfocompletion;
	}

	public void setIsinfocompletion(Long isinfocompletion) {
		this.isinfocompletion = isinfocompletion;
	}

	public Date getLasteroperatetime() {
		return this.lasteroperatetime;
	}

	public void setLasteroperatetime(Date lasteroperatetime) {
		this.lasteroperatetime = lasteroperatetime;
	}

	public Date getLatestgaingistime() {
		return this.latestgaingistime;
	}

	public void setLatestgaingistime(Date latestgaingistime) {
		this.latestgaingistime = latestgaingistime;
	}

	public Date getLatestoperatetime() {
		return this.latestoperatetime;
	}

	public void setLatestoperatetime(Date latestoperatetime) {
		this.latestoperatetime = latestoperatetime;
	}

	public String getLatitude() {
		return this.latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getLongitude() {
		return this.Longitude;
	}

	public void setLongitude(String Longitude) {
		this.Longitude = Longitude;
	}

	public Long getMoneyclassid() {
		return this.moneyclassid;
	}

	public void setMoneyclassid(Long moneyclassid) {
		this.moneyclassid = moneyclassid;
	}

	public Long getNationindustrytypeid() {
		return this.nationindustrytypeid;
	}

	public void setNationindustrytypeid(Long nationindustrytypeid) {
		this.nationindustrytypeid = nationindustrytypeid;
	}

	public String getOperatepointaddress() {
		return this.operatepointaddress;
	}

	public void setOperatepointaddress(String operatepointaddress) {
		this.operatepointaddress = operatepointaddress;
	}

	public String getOperatepointaddresspostcode() {
		return this.operatepointaddresspostcode;
	}

	public void setOperatepointaddresspostcode(String operatepointaddresspostcode) {
		this.operatepointaddresspostcode = operatepointaddresspostcode;
	}

	public String getOperatepointemail() {
		return this.operatepointemail;
	}

	public void setOperatepointemail(String operatepointemail) {
		this.operatepointemail = operatepointemail;
	}

	public String getOperatepointfax() {
		return this.operatepointfax;
	}

	public void setOperatepointfax(String operatepointfax) {
		this.operatepointfax = operatepointfax;
	}

	public String getOperatepointname() {
		return this.operatepointname;
	}

	public void setOperatepointname(String operatepointname) {
		this.operatepointname = operatepointname;
	}

	public String getOperatepointphone() {
		return this.operatepointphone;
	}

	public void setOperatepointphone(String operatepointphone) {
		this.operatepointphone = operatepointphone;
	}

	public String getOperatepointpicurl() {
		return this.operatepointpicurl;
	}

	public void setOperatepointpicurl(String operatepointpicurl) {
		this.operatepointpicurl = operatepointpicurl;
	}

	public String getOperatepointshortname() {
		return this.operatepointshortname;
	}

	public void setOperatepointshortname(String operatepointshortname) {
		this.operatepointshortname = operatepointshortname;
	}

	public String getOperatepointwebsite() {
		return this.operatepointwebsite;
	}

	public void setOperatepointwebsite(String operatepointwebsite) {
		this.operatepointwebsite = operatepointwebsite;
	}

	public String getOpptresponsibleperson() {
		return this.opptresponsibleperson;
	}

	public void setOpptresponsibleperson(String opptresponsibleperson) {
		this.opptresponsibleperson = opptresponsibleperson;
	}

	public String getOpptresponsiblepersonaddr() {
		return this.opptresponsiblepersonaddr;
	}

	public void setOpptresponsiblepersonaddr(String opptresponsiblepersonaddr) {
		this.opptresponsiblepersonaddr = opptresponsiblepersonaddr;
	}

	public String getOpptresponsiblepersonid() {
		return this.opptresponsiblepersonid;
	}

	public void setOpptresponsiblepersonid(String opptresponsiblepersonid) {
		this.opptresponsiblepersonid = opptresponsiblepersonid;
	}

	public String getOpptresponsiblepersonmb() {
		return this.opptresponsiblepersonmb;
	}

	public void setOpptresponsiblepersonmb(String opptresponsiblepersonmb) {
		this.opptresponsiblepersonmb = opptresponsiblepersonmb;
	}

	public String getOpptresponsiblepersonphone() {
		return this.opptresponsiblepersonphone;
	}

	public void setOpptresponsiblepersonphone(String opptresponsiblepersonphone) {
		this.opptresponsiblepersonphone = opptresponsiblepersonphone;
	}

	public Long getOpptrpersondutiestypeid() {
		return this.opptrpersondutiestypeid;
	}

	public void setOpptrpersondutiestypeid(Long opptrpersondutiestypeid) {
		this.opptrpersondutiestypeid = opptrpersondutiestypeid;
	}

	public String getOrganizationshortname() {
		return this.organizationshortname;
	}

	public void setOrganizationshortname(String organizationshortname) {
		this.organizationshortname = organizationshortname;
	}

	public String getPostcode() {
		return this.postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	public Long getProvinceid() {
		return this.provinceid;
	}

	public void setProvinceid(Long provinceid) {
		this.provinceid = provinceid;
	}

	public String getRegisteraddress() {
		return this.registeraddress;
	}

	public void setRegisteraddress(String registeraddress) {
		this.registeraddress = registeraddress;
	}

	public Long getRegistertypeid() {
		return this.registertypeid;
	}

	public void setRegistertypeid(Long registertypeid) {
		this.registertypeid = registertypeid;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getReserved1() {
		return this.reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}

	public String getReserved2() {
		return this.reserved2;
	}

	public void setReserved2(String reserved2) {
		this.reserved2 = reserved2;
	}

	public String getReserved3() {
		return this.reserved3;
	}

	public void setReserved3(String reserved3) {
		this.reserved3 = reserved3;
	}

	public String getReserved4() {
		return this.reserved4;
	}

	public void setReserved4(String reserved4) {
		this.reserved4 = reserved4;
	}

	public String getReserved5() {
		return this.reserved5;
	}

	public void setReserved5(String reserved5) {
		this.reserved5 = reserved5;
	}

	public String getReserved6() {
		return this.reserved6;
	}

	public void setReserved6(String reserved6) {
		this.reserved6 = reserved6;
	}

	public String getReserved7() {
		return this.reserved7;
	}

	public void setReserved7(String reserved7) {
		this.reserved7 = reserved7;
	}

	public String getReserved8() {
		return this.reserved8;
	}

	public void setReserved8(String reserved8) {
		this.reserved8 = reserved8;
	}

	public Long getRingid() {
		return this.ringid;
	}

	public void setRingid(Long ringid) {
		this.ringid = ringid;
	}

	public Long getRoadid() {
		return this.roadid;
	}

	public void setRoadid(Long roadid) {
		this.roadid = roadid;
	}

	public String getSafeproductresp() {
		return this.safeproductresp;
	}

	public void setSafeproductresp(String safeproductresp) {
		this.safeproductresp = safeproductresp;
	}

	public String getSafeproductrespduty() {
		return this.safeproductrespduty;
	}

	public void setSafeproductrespduty(String safeproductrespduty) {
		this.safeproductrespduty = safeproductrespduty;
	}

	public String getSafeproductrespphone() {
		return this.safeproductrespphone;
	}

	public void setSafeproductrespphone(String safeproductrespphone) {
		this.safeproductrespphone = safeproductrespphone;
	}

	public Long getScale() {
		return this.scale;
	}

	public void setScale(Long scale) {
		this.scale = scale;
	}

	public Date getShutdowndate() {
		return this.shutdowndate;
	}

	public void setShutdowndate(Date shutdowndate) {
		this.shutdowndate = shutdowndate;
	}

	public Long getSortnumber() {
		return this.sortnumber;
	}

	public void setSortnumber(Long sortnumber) {
		this.sortnumber = sortnumber;
	}

	public Long getStateid() {
		return this.stateid;
	}

	public void setStateid(Long stateid) {
		this.stateid = stateid;
	}

	public Long getSuperiorunitid() {
		return this.superiorunitid;
	}

	public void setSuperiorunitid(Long superiorunitid) {
		this.superiorunitid = superiorunitid;
	}

	public String getSuperiorunitname() {
		return this.superiorunitname;
	}

	public void setSuperiorunitname(String superiorunitname) {
		this.superiorunitname = superiorunitname;
	}

	public Long getSuperviseviewtypeid() {
		return this.superviseviewtypeid;
	}

	public void setSuperviseviewtypeid(Long superviseviewtypeid) {
		this.superviseviewtypeid = superviseviewtypeid;
	}

	public String getUnitname() {
		return this.unitname;
	}

	public void setUnitname(String unitname) {
		this.unitname = unitname;
	}

	public Long getUnittypeid() {
		return this.unittypeid;
	}

	public void setUnittypeid(Long unittypeid) {
		this.unittypeid = unittypeid;
	}

	public Long getUserid() {
		return this.userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public Long getVillageid() {
		return this.villageid;
	}

	public void setVillageid(Long villageid) {
		this.villageid = villageid;
	}

	public QCmnOperatepoint20 getQCmnOperatepoint20() {
		return this.QCmnOperatepoint20;
	}

	public void setQCmnOperatepoint20(QCmnOperatepoint20 QCmnOperatepoint20) {
		this.QCmnOperatepoint20 = QCmnOperatepoint20;
	}

	public Set<QCmnOperatepoint20> getQCmnOperatepoint20s() {
		return this.QCmnOperatepoint20s;
	}

	public void setQCmnOperatepoint20s(Set<QCmnOperatepoint20> QCmnOperatepoint20s) {
		this.QCmnOperatepoint20s = QCmnOperatepoint20s;
	}

	public QCmnOperatepoint20 addQCmnOperatepoint20(QCmnOperatepoint20 QCmnOperatepoint20) {
		getQCmnOperatepoint20s().add(QCmnOperatepoint20);
		QCmnOperatepoint20.setQCmnOperatepoint20(this);

		return QCmnOperatepoint20;
	}

	public QCmnOperatepoint20 removeQCmnOperatepoint20(QCmnOperatepoint20 QCmnOperatepoint20) {
		getQCmnOperatepoint20s().remove(QCmnOperatepoint20);
		QCmnOperatepoint20.setQCmnOperatepoint20(null);

		return QCmnOperatepoint20;
	}

	public QCmnUnit18 getQCmnUnit18() {
		return QCmnUnit18;
	}

	public void setQCmnUnit18(QCmnUnit18 qCmnUnit18) {
		QCmnUnit18 = qCmnUnit18;
	}

}